package com.fang.security.common.base;

import java.io.Serializable;

/**
 **/
public class ServiceCode implements Serializable {

    public static final ResultCode SUCCESS = new ResultCode("0000", "SUCCESS");
    public static final ResultCode SYSTEM_BUSY = new ResultCode("9999", "SYSTEM_BUSY(9999)");

    /**
     * 用户未登录
     */
    public static final ResultCode USER_NOT_LOGIN = new ResultCode("0101", "USER_NOT_LOGIN(0101)");
    /**
     * 账号不可用
     */
    public static final ResultCode USER_ACCOUNT_UNAVAILABLE = new ResultCode("0102", "USER_ACCOUNT_UNAVAILABLE(0102)");
    /**
     * 密码错误
     */
    public static final ResultCode USER_PASSWORD_ERROR = new ResultCode("0103", "USER_PASSWORD_ERROR(0103)");
    /**
     * 密码过期
     */
    public static final ResultCode USER_PASSWORD_EXPIRED = new ResultCode("0104", "USER_PASSWORD_EXPIRED(0104)");
    /**
     * 账号被锁定
     */
    public static final ResultCode ACCOUNT_LOCKED = new ResultCode("0105", "ACCOUNT_LOCKED(0105)");
    /**
     * 账号不存在
     */
    public static final ResultCode ACCOUNT_NOT_EXIST = new ResultCode("0106", "ACCOUNT_NOT_EXIST(0106)");
    /**
     * 账号已存在
     */
    public static final ResultCode ACCOUNT_ALREADY_EXIST = new ResultCode("0107", "ACCOUNT_ALREADY_EXIST(0107)");
    /**
     * 权限不足
     */
    public static final ResultCode INSUFFICIENT_PERMISSIONS = new ResultCode("0108", "INSUFFICIENT_PERMISSIONS(0108)");
    /**
     * 登录状态过期
     */
    public static final ResultCode LOGIN_EXPIRED = new ResultCode("0109", "LOGIN_EXPIRED(0109)");

    /**
     * 参数异常
     */
    public static final ResultCode PARAM_ABNORMALITY = new ResultCode("1001", "PARAM_ABNORMALITY(1001)");

}
